home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
v10n18.arc
/
LN1018.ARC
/
FILOPEN
next >
Wrap
Text File
|
1991-10-30
|
586b
|
16 lines
Sub MAIN
On Error Goto done ' in case user clicks Cancel
Dim dlg As FileOpen ' create a FileOpen dialog
Dialog dlg ' show the dialog box
' We get back here when the user clicks Ok
Print dlg.Name ' .Name is the field we want
' for some reason, we forbid the user to open files whose
' name contains the string "phoo"
If InStr(LCase$(dlg.Name), "phoo") = 0 Then
FileOpen dlg.Name ' run the FileOpen macro
Else
MsgBox "Authorization failure"
End If
done:
End Sub